/**
 * @file car_I9100s.h
 * @brief Header file for I9100s motor driver functions and definitions.
 *
 * This file contains the function declarations and macro definitions for controlling
 * the motors in the I9100s car system. It provides the necessary interfaces for
 * initializing the motor driver, controlling motor speed and direction, and handling
 * motor-related tasks.
 *
 * @author Maker Studio
 * @license Apache 2.0
 *
 * This code is open-sourced under the Apache 2.0 license. When using open-source libraries
 * or code, please ensure to acknowledge the original authors and sources.
 */

#ifndef CAR_I9100S_H
#define CAR_I9100S_H

#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include "systick.h"
#include "ohos_init.h"
#include "cmsis_os2.h"
#include <unistd.h>
#include "iot_gpio.h"
#include "iot_pwm.h"
#include "iot_errno.h"
#include "iot_watchdog.h"
#include "iot_gpio_ex.h"


#define GPIO6 6
#define GPIO3 3
#define GPIO9 9
#define GPIO7 7
#define GPIOFUNC 0


void gpio_control(void);
void car_backward(void);
void car_forward(void);
void car_left(void);
void car_right(void);
void car_stop(void);

#endif
